package com.bjpowernode.springboot.service;

import com.bjpowernode.springboot.entity.BookBean;
import com.bjpowernode.springboot.entity.UserBean;


import java.util.List;

public interface UserService {
    List<UserBean> queryAll();

    boolean addRegisterUser(UserBean userBean);

    UserBean queryUserByUserInfo(UserBean userBean);

    void cacheUserBeanToRedis(UserBean queryUser);

    boolean isLogined(String username, String password);

    UserBean getUserFromRedis(String userId);

    List<BookBean> queryAllBooks();
}
